export default ({ request }) => ({

  getBuildings(data = {}) {
    // console.log(data)
    return request({
      url: '/ecs/ecsbuildinginfo/select',
      method: 'get',
      params: data,
    })
  },

  getEcscollectitem(data = {}) {
    return request({
      url: '/ecs/ecscollectitem/list',
      method: 'get',
      params: data,
    })
  },
  intimegroupBymeter(data = {}) {
    return request({
      url: '/eda/intimegroupBymeter',
      method: 'get',
      params: data,
    })
  },

  ecsmeterinfolist(data = {}) {
    return request({
      url: '/ecs/ecsmeterinfo/list',
      method: 'get',
      params: data,
    })
  },

  ecsprojectinfolist(data = {}) {
    return request({
      url: '/ecs/ecsprojectinfo/list',
      method: 'get',
      params: data,
    })
  },

  sysstaticdatagetList(data = {}) {
    return request({
      url: '/sys/sysstaticdata/getList',
      method: 'get',
      params: data,
    })
  },

  ecsbuildinginfoselect(data = {}) {
    return request({
      url: '/ecs/ecsbuildinginfo/select',
      method: 'get',
      params: data
    })
  },

  chazuodata(data = {}) {
    return request({
      url: '/eda/chazuodata',
      method: 'get',
      params: data
    })
  },
  
  getMeterData(data = {}) {
    return request({
      url: '/eda/meterData',
      method: 'post',
      data,
    })
  },

  checkMeterData(data = {}) {
    return request({
      url: '/eda/checkMeterData',
      method: 'post',
      data,
    })
  }
})
